package com.info.zhiduoduo.repository.entity.maker;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2021-07-04
 */
@Data
@Accessors(chain = true)
@TableName("zdd_maker_alipay_account_book")
public class MakerAlipayAccountBook extends Model<MakerAlipayAccountBook> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 受托人创客id
     */
    private Integer userid;
    /**
     * 签约主体isv id
     */
    @TableField("isv_id")
    private Integer isvId;
    /**
     * 开通的资金记账本id
     */
    @TableField("account_book_id")
    private String accountBookId;
    /**
     * 记账本的可用余额(非支付宝账户余额）
     */
    @TableField("available_amount")
    private BigDecimal availableAmount;
    /**
     * 外卡卡号
     */
    @TableField("card_no")
    private String cardNo;
    /**
     * 外卡户名
     */
    @TableField("bank_acc_name")
    private String bankAccName;
    /**
     * 外卡支行
     */
    @TableField("card_branch")
    private String cardBranch;
    /**
     * 外卡开户行
     */
    @TableField("card_bank")
    private String cardBank;
    /**
     * 外卡开户地址
     */
    @TableField("card_location")
    private String cardLocation;
    /**
     * 外卡联行号
     */
    @TableField("card_deposit")
    private String cardDeposit;
    /**
     * 外卡状态
     */
    private String status;
    private Date createtime;
    private Date updatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
